Metropolis-Hastings Algorithm
What it is
Metropolis-Hastings Algorithm is a general framework which includes as special cases the very first and simpler MCMC Markov chain Monte Carlo Algorithm.
How it works
Consider an arbitrary posterior
in which one can derive
This is how Metropolis Hastings work:
- sample
- sample
- decision:
- if
, accept - else, reject
and accept
- if
Gibbs Sampling
- Gibbs sampling is a special type of Metropolis Hastings sampling.
- It is an approach to constructing a Markov chain where the probability of the next sample is calculated as the conditional probability given the prior sample.